package com.foo.designpattern.command;

/**
 * com.foo.designpattern.command
 * Created with IntelliJ IDEA.
 * Created by jiang on 2016-04-25 9:40.
 *
 * @Description 厨师：真正的命令执行者
 */
public class CookReceiver {
    /**
     * 执行命令：做菜
     *
     * @param food 菜名
     */
    public void cooking(String food) {
        System.out.println("开始做菜：" + food);
    }

    /**
     * 执行命令：取消做菜
     *
     * @param food 菜名
     */
    public void unCooking(String food) {
        System.out.println("顾客取消菜品：" + food + "厨师不做了");
    }
}
